import request from '@/utils/request'

//查询维修列表
export function listRepair(query) {
  return request({
    url: '/repair/accendant/list',
    method: 'get',
    params: query
  })
}

//查看详细信息
export function getRepair(repairId){
  return request({
    url: '/repair/accendant/' + repairId,
    method: 'get'
  })
}

//修改维修订单
export function updateRepair(data){
  return request({
    url: '/repair/accendant/edit',
    method: 'put',
    data: data
  })
}

//获取剩余材料
export function getStoreMaterial(data){
  return request({
    url:'/repair/accendant/getStoreMaterial',
    method:'get',
    data:data
  })
}

//提交报修材料
export function addMaterial(data){
  return request({
    url:'/repair/accendant/add',
    method:'put',
    data:data
  })

}
